/* 登录和注册页面共享样式 */

/* 容器样式 */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50rpx 40rpx;
  background-image: url("/assets/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
}

/* 半透明遮罩 */
.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

/* 头部样式 */
.header {
  margin-bottom: 60rpx;
  text-align: center;
  padding-top: 60rpx;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 1.2s ease-in-out;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 180rpx;
}

.title {
  font-size: 60rpx;
  font-weight: bold;
  color: #1c6a3e;
  text-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
  margin-bottom: 24rpx;
}

.subtitle {
  font-size: 34rpx;
  color: #1c6a3e;
  letter-spacing: 2rpx;
}

/* 表单样式 */
.auth-form {
  width: 95%;
  max-width: 650rpx;
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 24rpx;
  padding: 40rpx;
  box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  animation: slideUp 0.8s ease-out;
  backdrop-filter: blur(5px);
}

.form-item {
  margin-bottom: 30rpx;
}

.form-label {
  font-size: 32rpx;
  color: #333;
  margin-bottom: 16rpx;
  display: block;
}

.form-input {
  height: 88rpx;
  border: 2rpx solid #e0e0e0;
  border-radius: 12rpx;
  padding: 0 24rpx;
  font-size: 32rpx;
  background-color: #f9f9f9;
}

.error-text {
  color: #ff0000;
  font-size: 24rpx;
  margin-top: 8rpx;
  display: block;
}

/* 按钮样式 */
.auth-btn-container {
  margin-top: 50rpx;
}

.auth-btn {
  height: 88rpx;
  width: 300rpx;
  background-color: #1c6a3e;
  color: #fff;
  border-radius: 12rpx;
  font-size: 34rpx;
  font-weight: 500;
  line-height: 88rpx;
  transition: all 0.3s ease;
  box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.1);
}

.auth-btn:active {
  transform: translateY(-3rpx);
  box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

/* 链接样式 */
.auth-link {
  margin-top: 40rpx;
  display: flex;
  justify-content: center;
  font-size: 28rpx;
  color: #666;
}

.link {
  color: #4caf50;
  margin-left: 10rpx;
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  bottom: -2rpx;
  left: 0;
  width: 0;
  height: 2rpx;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.link:active::after {
  width: 100%;
}

/* 返回按钮样式 */
.back-button {
  position: absolute;
  top: 60rpx;
  left: 40rpx;
  width: 80rpx;
  height: 80rpx;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
}

.back-button:active {
  transform: scale(0.95);
  background-color: rgba(255, 255, 255, 0.9);
}

.back-icon {
  width: 45rpx;
  height: 40rpx;
}

/* 登录提示样式 */
.login-tips {
  margin-top: 40rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rpx;
}

.login-tips text {
  font-size: 28rpx;
  color: #999;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
